﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace AsTekMobile
{
    public partial class frmServis3 : Form
    {
        public string Not { get; set; }
        public int NedenID { get; set; }

        public frmServis3()
        {
            InitializeComponent();
        }

        private void frmServis3_Load(object sender, EventArgs e)
        {
            cmbKapamaNedenleri.DataSource = Database.ctor.KapamaSebepleri;
            cmbKapamaNedenleri.DisplayMember = "Adi";
        }

        private void btnTamam_Click(object sender, EventArgs e)
        {
            if (cmbKapamaNedenleri.SelectedIndex > -1)
            {
                this.NedenID = ((KapamaSebep)cmbKapamaNedenleri.SelectedItem).ID;
            }
            this.Not = txtNotlar.Text;
            this.DialogResult = DialogResult.OK;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (Sip.Visible)
            {
                Sip.Visible = false;
            }
            else
            {
                Sip.Visible = true;
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}